package com.fangsheng.service;

import com.spring.*;

/**
 * @创建人: 放生
 * @创建时间: 2021/7/16
 * @描述:
 */
@Component("userService")
@Scop("prototype")
public class UserServiceImpl implements BeanNameAware, InitializingBean, UserService {

    @Autowrid
    private OrderService orderService;

    private String beanName;

    public void test(){
        System.out.println(orderService);
        System.out.println(beanName);
    }

    @Override
    public void setBeanName(String name) {
        this.beanName = name;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("bean初始化后的操作。。。。。。。");
    }
}
